home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18107 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: solon.com!not-for-mail
  2. From: seebs@solutions.solon.com (Peter Seebach)
  3. Newsgroups: comp.lang.c++,comp.lang.c
  4. Subject: Re: Please don't shoot me (newbie question)
  5. Date: 18 Apr 1996 15:28:12 -0500
  6. Organization: Usenet Fact Police (Undercover)
  7. Message-ID: <4l68ks$pl7@solutions.solon.com>
  8. References: <4l0puc$oa9@interport.net> <31766DEC.4EED@datalytics.com>
  9. Reply-To: seebs@solon.com
  10. NNTP-Posting-Host: solutions.solon.com
  11.  
  12. In article <31766DEC.4EED@datalytics.com>,
  13. Rob Stewart  <stew@datalytics.com> wrote:
  14. >C++ offers function overloading.  This means that you can have 
  15. >more than one function with the same name.  So long as they take 
  16. >different parameters, they are different functions.  This means 
  17. >you can have several versions of Read or Write, for example, 
  18. >that each take different parameters.
  19.  
  20. And I personally think this is one of the most dangerous ideas
  21. ever seen.  I prefer to get a warning for using something incorrectly.
  22.  
  23. There are other, perhaps slightly less convenient, ways of accomplishing much
  24. the same result, without the huge gaping hole in the type system.
  25.  
  26. MHO, please don't post responses.
  27.  
  28. We've seen the entire debate before, just wanted to make sure both sides
  29. showe up once.
  30.  
  31. [comments about encapsulation]
  32.  
  33. As previously noted, this can be done in C, although it looks much different.
  34.  
  35. Mostly the question is how much you want to do yourself, and how much you
  36. want to have happen magically.
  37.  
  38. -s
  39. -- 
  40. Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
  41. C/Unix wizard -- C/Unix questions? Send mail for help.  No, really!
  42. Unsolicited email is not welcome, and will be billed for at consulting rates.
  43. The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
  44.